package org.darkforest.common.services;

import org.darkforest.model.PXianshi;

import java.util.List;
import java.util.Map;

/**
 * Created by Libing on 2015/6/19.
 */
public interface PXianShiService {

    /**
     * 限时折扣分页列表
     * @param pXianshi
     * @return
     */
    PXianshi findTimeLimitedBuyingActiveByPage(PXianshi pXianshi);

    /**
     * 根据主键删除活动
     * @param activeId
     * @return
     */
    boolean deleteXianshiActiveByKey(Integer activeId);

    /**
     * 新增限时折扣活动
     * @param pXianshi
     */
    void addPxianshiActive(PXianshi pXianshi);

    /**
     * 根据id查询限时折扣信息
     * @param xianshiId
     * @return
     */
    PXianshi getPXianshiActiveByKey(Integer xianshiId);

    /**
     * 根据条件查询特卖活动
     * @param pxianshi
     * @return
     */
    List<PXianshi> findPXianShiByCondition(PXianshi pxianshi);

    void updatePXianShiStateBatch(Map<String, Object> pxianshi);
}
